# 二维数组的初始化
# a = [[1,2,3],["a","b","c"]]

b = [[0]*5 for i in range(3)]  # [[0,0,0,0,0],[0,0,0,0,0],[0,0,0,0,0]]
print(b)

c = [[0 for i in range(5)] for j in range(3)] # [[0,0,0,0,0],[0,0,0,0,0],[0,0,0,0,0]]
print(c)

# * 就是把一维数组中的元素复制5遍
# print([0]*5)
# for 循环, 相当于一维数组的整体复制5遍
# print([0] for i in range(5))

# 二维数组进行遍历
d = [["a","b","c"] ,[1,2,3],[4,5,6]]
print(d[2][1])

# for i in d:
#     for j in i:
#         print(j)

# 下标
for i in range(len(d)):
   for j in range(len(d[i])):
       print(i,j,d[i][j])